function ajaxpop0009a_del(sPop_id, sURL2)
{
	var sURL = "ajaxpop0009a_val.asp";	
	
	var bAgree=confirm("Do yo want to delete this record?");
	if (bAgree)
	{	
		//... Ajax to validate if the population can be deleted ...//
		try
		{  
		 // Firefox, Opera 8.0+, Safari  
		 xmlHttp=new XMLHttpRequest();  
		}
		catch (e)
		{ 
			 // Internet Explorer  
			 try
			 {    
				   xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
			 }
			 catch (e)
			 {    
				   try
				   {      
						 xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");     
				   }
				   catch (e)
				   {      
						 alert("Your browser does not support AJAX!");      
						 return false;
				   }    
			 }  
		}	   
		xmlHttp.onreadystatechange=function()
		{
			if(xmlHttp.readyState==4)
			{
			   sResponse = xmlHttp.responseText;
			   if(sResponse != "OK")
			   {
					var bAgree2=confirm(sResponse);
					if (bAgree2)				   
					{
						window.location="pop0009a_del.asp?pop_id=" + sPop_id;
					}
					else
					{
						return false;
					}
			   }
			   else
			   {
					window.location="pop0009a_del.asp?pop_id=" + sPop_id;
			   }
			}
		}
		sURL = sURL + "?" + "pop_id=" + sPop_id;
		xmlHttp.open("GET", sURL, true);
		xmlHttp.send(null);
	}
	else
	{
		return false;	
	}	 
}
